#pragma GCC optimize(2)
#include <iostream>
#include <algorithm>
#include <cstring>
#include <string>
#include <map>
#include <vector>

using namespace std;
using LL = long long;

int main(){
    freopen("in.txt", "r", stdin);
    freopen("out.txt", "w", stdout);
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    int T;
    cin >> T;
    while(T--){
        int n;
        cin >> n;

        if(n == 1){
            cout << 2 << '\n';
            continue;
        }

        int t = n / 3;
        int res = t;
        if((n % 3) >= 1){
            res ++;
        }

        cout << res << '\n';
    }


    return 0;
}